Skip to content

(A013) [ModelicaSystemDoE] simplify definition#423

Open
syntron wants to merge 5 commits intoOpenModelica:masterfrom
syntron:ModelicaSystemDoE
Open

(A013) [ModelicaSystemDoE] simplify definition#423
syntron wants to merge 5 commits intoOpenModelica:masterfrom
syntron:ModelicaSystemDoE

Conversation

@syntron
Copy link
Contributor

@syntron syntron commented Feb 18, 2026

see PR #404

[ModelicaSystemDoE] simplify definition; use a Modelicasystem instance as argument

[ModelicaSystemDoE] update docstring

[ModelicaSystemDoE] fix for relative paths

[ModelicaSystemDoE] fix unittest

* test_ModelicaSystemDoE_local is tested
* test_ModelicaSystemDoE_docker should work
* test_ModelicaSystemDoE_WSL is untested
tmpdir = tmp_path / 'DoE'
tmpdir.mkdir(exist_ok=True)
omcs = OMPython.OMCSessionWSL()
assert omcs.sendExpression("getVersion()") == "OpenModelica 1.25.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this will not run on GitHub tests but still what is the point of checking against hard coded version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is to ensure within the test definition directly after the setup that OMC is running; the check could be removed ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than validating against a specific version, we can check whether getVersion() returns a non-empty result to ensure that OMC is functioning correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants